.class public Lcom/estrongs/android/ui/drag/DragWindowView;
.super Landroid/widget/LinearLayout;
.source "DragWindowView.java"

# interfaces
.implements Lcom/estrongs/android/ui/drag/g;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/widget/TextView;

.field private e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

.field private f:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/drag/DragWindowView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, -0x1

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/ui/drag/DragWindowView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->a:Landroid/content/Context;

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->b()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/drag/DragWindowView;)Lcom/estrongs/android/pop/view/FileExplorerActivity;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    return-object p0
.end method

.method private a(Les/gy;)Z
    .locals 2

    .line 23
    invoke-virtual {p1}, Les/gy;->c()Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 24
    :cond_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 25
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->V1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 26
    :cond_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->n0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_2

    goto :goto_0

    :cond_2
    return v0

    :cond_3
    :goto_0
    const/4 p1, 0x1

    return p1
.end method

.method private b()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c00ff

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 2
    invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    const v1, 0x7f090345

    .line 3
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->b:Landroid/widget/TextView;

    const v2, 0x7f110038

    .line 4
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    const v1, 0x7f090346

    .line 5
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    const v1, 0x7f090348

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->d:Landroid/widget/TextView;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 7

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object v0

    invoke-virtual {v0}, Les/hy;->d()I

    move-result v0

    .line 3
    iget v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    if-lt v1, v0, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    invoke-virtual {v0, v1}, Les/hy;->a(I)Les/gy;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->b:Landroid/widget/TextView;

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v1, :cond_1

    .line 7
    iget v2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->i(I)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 8
    iget-object v2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 9
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->getPaddingTop()I

    move-result v1

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {v2}, Landroid/widget/ImageView;->getPaddingBottom()I

    move-result v2

    .line 11
    iget-object v3, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {v3}, Landroid/widget/ImageView;->getPaddingLeft()I

    move-result v3

    .line 12
    iget-object v4, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {v4}, Landroid/widget/ImageView;->getPaddingRight()I

    move-result v4

    .line 13
    iget-object v5, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 14
    iget-object v5, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {v5, v3, v1, v4, v2}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->d:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->a:Landroid/content/Context;

    invoke-virtual {v0, v2}, Les/gy;->c(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public a(Lcom/estrongs/android/ui/drag/d;IIIILcom/estrongs/android/ui/drag/e;Ljava/lang/Object;)V
    .locals 7

    .line 16
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object p1

    invoke-virtual {p1}, Les/hy;->b()Les/gy;

    move-result-object p1

    .line 17
    invoke-virtual {p1}, Les/gy;->c()Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_0

    return-void

    .line 18
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object p2

    iget p3, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    invoke-virtual {p2, p3}, Les/hy;->a(I)Les/gy;

    move-result-object p2

    .line 19
    invoke-virtual {p2}, Les/gy;->c()Ljava/lang/String;

    move-result-object p3

    .line 20
    invoke-virtual {p2}, Les/gy;->c()Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p1, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    return-void

    .line 21
    :cond_1
    invoke-virtual {p2}, Les/gy;->c()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/f;->r(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v2

    .line 22
    invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    move-object v0, p1

    check-cast v0, Landroid/app/Activity;

    move-object v1, p7

    check-cast v1, Ljava/util/List;

    const/4 v3, 0x1

    const/4 v4, 0x1

    new-instance v5, Lcom/estrongs/android/ui/drag/DragWindowView$a;

    invoke-direct {v5, p0, p3}, Lcom/estrongs/android/ui/drag/DragWindowView$a;-><init>(Lcom/estrongs/android/ui/drag/DragWindowView;Ljava/lang/String;)V

    const/4 v6, 0x1

    invoke-static/range {v0 .. v6}, Lcom/estrongs/android/pop/utils/p;->a(Landroid/app/Activity;Ljava/util/List;Lcom/estrongs/fs/g;ZZLes/z80;Z)V

    return-void
.end method

.method public b(Lcom/estrongs/android/ui/drag/d;IIIILcom/estrongs/android/ui/drag/e;Ljava/lang/Object;)Z
    .locals 0

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object p1

    iget p2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    invoke-virtual {p1, p2}, Les/hy;->a(I)Les/gy;

    move-result-object p1

    .line 8
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/drag/DragWindowView;->a(Les/gy;)Z

    move-result p1

    return p1
.end method

.method public c(Lcom/estrongs/android/ui/drag/d;IIIILcom/estrongs/android/ui/drag/e;Ljava/lang/Object;)V
    .locals 0

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p1}, Landroid/widget/ImageView;->getPaddingTop()I

    move-result p1

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p2}, Landroid/widget/ImageView;->getPaddingBottom()I

    move-result p2

    .line 3
    iget-object p3, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p3}, Landroid/widget/ImageView;->getPaddingLeft()I

    move-result p3

    .line 4
    iget-object p4, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p4}, Landroid/widget/ImageView;->getPaddingRight()I

    move-result p4

    .line 5
    iget-object p5, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    const/4 p6, 0x0

    invoke-virtual {p5, p6}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 6
    iget-object p5, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p5, p3, p1, p4, p2}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->b:Landroid/widget/TextView;

    const/4 p2, 0x4

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V

    return-void
.end method

.method public d(Lcom/estrongs/android/ui/drag/d;IIIILcom/estrongs/android/ui/drag/e;Ljava/lang/Object;)V
    .locals 0

    return-void
.end method

.method public e(Lcom/estrongs/android/ui/drag/d;IIIILcom/estrongs/android/ui/drag/e;Ljava/lang/Object;)V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object p1

    iget p2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    invoke-virtual {p1, p2}, Les/hy;->a(I)Les/gy;

    move-result-object p1

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p2}, Landroid/widget/ImageView;->getPaddingTop()I

    move-result p2

    .line 3
    iget-object p3, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p3}, Landroid/widget/ImageView;->getPaddingBottom()I

    move-result p3

    .line 4
    iget-object p4, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p4}, Landroid/widget/ImageView;->getPaddingLeft()I

    move-result p4

    .line 5
    iget-object p5, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p5}, Landroid/widget/ImageView;->getPaddingRight()I

    move-result p5

    .line 6
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/drag/DragWindowView;->a(Les/gy;)Z

    move-result p6

    if-nez p6, :cond_0

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    const p6, 0x7f080227

    invoke-virtual {p1, p6}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p1, p4, p2, p5, p3}, Landroid/widget/ImageView;->setPadding(IIII)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p6, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    const p7, 0x7f080766

    invoke-virtual {p6, p7}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 10
    iget-object p6, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->c:Landroid/widget/ImageView;

    invoke-virtual {p6, p4, p2, p5, p3}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/DragWindowView;->getWindowListManager()Les/hy;

    move-result-object p2

    invoke-virtual {p2}, Les/hy;->b()Les/gy;

    move-result-object p2

    .line 12
    invoke-virtual {p2}, Les/gy;->c()Ljava/lang/String;

    move-result-object p2

    if-eqz p2, :cond_1

    .line 13
    invoke-virtual {p1}, Les/gy;->c()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_1

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->b:Landroid/widget/TextView;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public getWindowListManager()Les/hy;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    return-object v0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->a:Landroid/content/Context;

    instance-of v1, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v1, :cond_1

    .line 4
    check-cast v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    return-object v0

    .line 5
    :cond_1
    new-instance v0, Les/hy;

    invoke-direct {v0}, Les/hy;-><init>()V

    return-object v0
.end method

.method public setActivity(Lcom/estrongs/android/pop/view/FileExplorerActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    return-void
.end method

.method public setPosition(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/drag/DragWindowView;->f:I

    return-void
.end method
